//
//  Enums.h
//  OCBase
//
//  Created by 侯伟 on 2019/8/23.
//  Copyright © 2019 侯伟. All rights reserved.
//

#ifndef Enums_h
#define Enums_h


/**
 运行环境
 */
typedef NS_ENUM(NSUInteger, Environment){
    
    Environment_Dev = 0,        //开发
    
    Environment_Pro = 3,        //生产
};



/**
 视频分类
 */
typedef NS_ENUM(NSUInteger, VideoType){
    
    VideoType_Hot = 0,          //热门
    
    VideoType_Movie = 1,        //电影
    
    VideoType_TV = 2,           //电视剧
    
    VideoType_Variety = 3,      //综艺
    
    VideoType_Anime = 4,        //动漫
    
    VideoType_KorTV = 11,            //韩剧
    
    VideoType_USTV = 12,             //美剧
    
    VideoType_JapTV = 16,            //日剧
};


typedef NS_ENUM(NSUInteger, RefreshType) {
    Refresh = 0,
    LoadMore = 1,
};
/**
 时间
 */
typedef NS_ENUM(NSUInteger, TimeRange){
    
    TimeRange_Today = 1,        //今天
    
    TimeRange_Week = 2,         //本周
    
    TimeRange_Month = 3,        //本月
};


/**
 搜索类型
 */
typedef NS_ENUM(NSUInteger, SearchType){
    
    SearchType_Video = 1,     //视频
    
    SearchType_Performer = 2, //演员
};


/**
编辑操作
*/
typedef NS_ENUM(NSInteger,EditOperation){
    
    EditOperation_Add = 0,//添加
    
    EditOperation_Edit = 1,//编辑
    
    EditOperation_Delete = 2,//删除
};


/**
 首页页面
 */
typedef NS_ENUM(NSInteger, ADateType){
    
    ADateType_Day = 0,
    
    ADateType_Week = 1,
    
    ADateType_Month = 2,
    
    ADateType_Year = 3,
};

//布尔类型回调
typedef void(^VoidBlock)(void);

//布尔类型回调
typedef void(^BoolBlock)(BOOL Bool);

//int类型回调
typedef void(^IntegerBlock)(NSInteger integer);

//字符串类型回调
typedef void(^StringBlock)(NSString* _Nullable string);

//类型回调
typedef void(^ObjBlock)(id _Nullable obj);

//数组回调
typedef void(^ArrayBlock)(NSArray* _Nullable objs);

//对象编辑回调
typedef void(^EditBlock)(id _Nullable obj,EditOperation operation);

#endif /* Enums_h */
